package Class.obj.field.exer4;

public class ArrListTest {
    public static void main(String[] args) {
        ArrList arrList = new ArrList();
        // 找出数组中的最大值
        int maxNum = 0;
        for (int i = 0; i < arrList.getArr().length; i++) {
            if (maxNum < arrList.getArr()[i]) {
                maxNum = arrList.getArr()[i];
            }
        }
        System.out.println("最大值是" + maxNum);
    }
}
